{% extends "tj3/tj3.html" %}

{% block navigation %}
	<script type="text/javascript">
		$('document').ready(function(){
			$('#update_btn').button();
			$('#delete_btn').button();
			$('#cancel_btn').button();
		});
	</script>
{% endblock navigation %}


{% block content  %} 


<h1 class="ui-widget ui-widget-header">{{task.project.name}}/{{task.name}}<span class="float_right">{{scenario|capfirst}}: Budget</span></h1>
<!--- iterate exist bookings --->
<div class="ui-widget ui-widget-content">
	<div class="mycontent">
		<div class="ui-state-warning fancy">
		<span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span>
		"Delete" will delete this task budget ONLY. This can leave the task hierarchy incomplete
		when attempting to calculate EVA. In order to use EVA, all tasks need to have a budget value!
		</div>

		<br>
	<form action="." method="post" enctype="multipart/form-data">
		<table>
			<tbody>
				{{ budget_formset.management_form }}
				{{ budget_formset }}
			</tbody>
		</table>
		
		<div class="float_right">
			<input id="update_btn" type="submit" name="command" value="Update" class="button" />
			<input id="delete_btn" type="submit" name="command" value="Delete" class="button" />
			<input id="cancel_btn" type="submit" name="command" value="Cancel" class="button" />
		</div>
		
	</form>
	</div>
</div>

{% endblock content %}
